import request from '@/utils/request'

export function search(data) {
  return request({
    url: '/template/search',
    method: 'post',
    data
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/template/addOrUpdate',
    method: 'post',
    data
  })
}

export function delTemplates(data) {
  return request({
    url: '/template/delTemplates',
    method: 'post',
    data
  })
}
export function delOne(data) {
    return request({
      url: '/template/delOne',
      method: 'post',
      data
    })
  }

  export function specFind() {
    return request({
      url: '/spec/findAll',
      method: 'post',
    })
  }
  export function brandFind() {
    return request({
      url: '/brand/findAll',
      method: 'post',
    })
  }
  export function findBrandId(data) {
    return request({
      url: '/brand/findByName',
      method: 'post',
      data
    })
  }
  export function findSpecId(data) {
    return request({
      url: '/spec/findByName',
      method: 'post',
      data
    })
  }
 